using LB.Common;

namespace LB.Server.Core
{
    public interface IUserManagement
    {
        /// <summary>
        /// Try to login in the system
        /// </summary>
        /// <param name="login">User login</param>
        /// <param name="hash">Password hash</param>
        /// <returns>LoginToken if success else null</returns>
        LoginToken Login (string login, string hash);

        bool CreateAccount(string login, string password);
        bool IsLoginExist(string login);
        bool IsSessionActive(string sessionId);
        void LogOut(string sessionId);
    }
}